<?php use_helper('I18N', 'Date') ?>
<?php include_partial('post/assets') ?>

<div id="sf_admin_container">
  <h1><?php echo __('nuovo post', array(), 'messages') ?></h1>

  <?php include_partial('post/flashes') ?>

  <?php include_partial('media/manager', array('prefix' => 'vanilla_post', 'field' => 'text')) ?>
  
  <?php echo link_to('preview', 'post/preview', array(
        'popup' => array(
            'Preview',
            'left=100,top=10,width=900,height=950,location=no,scrollbars =yes,resizable=0,directories=no,status=no,toolbar=no,menubar=no'
        ),
        'title' => 'preview'
  )) ?>

  <div id="sf_admin_header">
    <?php include_partial('post/form_header', array('vanilla_post' => $vanilla_post, 'form' => $form, 'configuration' => $configuration)) ?>
  </div>

  <div id="sf_admin_content">
    <?php include_partial('post/form', array('vanilla_post' => $vanilla_post, 'form' => $form, 'configuration' => $configuration, 'helper' => $helper)) ?>
  </div>

  <div id="sf_admin_footer">
    <?php include_partial('post/form_footer', array('vanilla_post' => $vanilla_post, 'form' => $form, 'configuration' => $configuration)) ?>
  </div>
</div>